package com.wsoft.form.dto;

import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 自定义表单-数据关联表
 * </p>
 *
 * @author Z001
 * @since 2024年09月05日 08:04:10
 */
@Getter
@Setter
@ToString
@Schema(name = "WfFormTableRelationEntity", description = "自定义表单-数据关联表")
public class WfFormTableRelationDTO extends BaseEntity {

    @Schema(description = "页面Id")
    private Long formId;

    @Schema(description = "表Id")
    private Long tableId;

    @Schema(description = "是否为主表(0-否，1-是)")
    private Integer isMaster;

    @Schema(description = "关联类型")
    private Integer relationType;

    @Schema(description = "主表Id")
    private Long masterTableId;

    @Schema(description = "主表关联字段Id")
    private Long masterColumnId;

    @Schema(description = "从表Id")
    private Long slaveTableId;

    @Schema(description = "从表关联字段Id")
    private Long slaveColumnId;
}
